﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
using PPT = Microsoft.Office.Interop.PowerPoint;

namespace An_Im.Converter
{
    class PPTBehaviorTypeToStringConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (CoreManipulator.AnimBehaviorTypeNameDictionary.ContainsKey((PPT.MsoAnimType)value))
                return CoreManipulator.AnimBehaviorTypeNameDictionary[(PPT.MsoAnimType) value];
            else
                return "unknown";
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
